package cn.ibizlab.odoo.core.odoo_stock.service;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.Collection;
import java.math.BigInteger;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import cn.ibizlab.odoo.core.odoo_stock.domain.Stock_rule;
import cn.ibizlab.odoo.core.odoo_stock.filter.Stock_ruleSearchContext;

/**
 * 实体[Stock_rule] 服务对象接口
 */

public interface IStock_ruleService{
     void removeBatch(Collection<? extends Serializable> idList, int batchSize) ;
     Stock_rule get(Integer id) ;
     Stock_rule get(Stock_rule stock_rule) ;
     boolean remove(Integer id) ;
     void updateBatch(List<Stock_rule> stock_rules, int batchSize) ;
     boolean update(Stock_rule stock_rule) ;
     boolean create(Stock_rule stock_rule) ;
     void createBatch(List<Stock_rule> stock_rules, int batchSize) ;

    /**
     * 查询集合 默认查询
     */
    Page<Stock_rule> searchDefault(Stock_ruleSearchContext context) ;

    /**
     * 根据公司查询
     */
     Page<Stock_rule> selectByOdoo_company(Integer id) ;

    /**
     * 根据联系人查询
     */
     Page<Stock_rule> selectByOdoo_partner_address(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Stock_rule> selectByOdoo_create(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Stock_rule> selectByOdoo_write(Integer id) ;

    /**
     * 根据库存路线查询
     */
     Page<Stock_rule> selectByOdoo_route(Integer id) ;

    /**
     * 根据库存位置查询
     */
     Page<Stock_rule> selectByOdoo_location(Integer id) ;

    /**
     * 根据库存位置查询
     */
     Page<Stock_rule> selectByOdoo_location_src(Integer id) ;

    /**
     * 根据拣货类型查询
     */
     Page<Stock_rule> selectByOdoo_picking_type(Integer id) ;

    /**
     * 根据仓库查询
     */
     Page<Stock_rule> selectByOdoo_propagate_warehouse(Integer id) ;

    /**
     * 根据仓库查询
     */
     Page<Stock_rule> selectByOdoo_warehouse(Integer id) ;

    /**
     * 转换ClientModel为Domain
     */
    public Stock_rule convert2Domain(cn.ibizlab.odoo.core.client.model.Istock_rule model ,Stock_rule domain);

    /**
     * 转换Domain为ClientModel
     */
    public cn.ibizlab.odoo.core.client.model.Istock_rule convert2Model(Stock_rule domain , cn.ibizlab.odoo.core.client.model.Istock_rule model);

}
